
<?php

$connect = mysql_connect("127.0.0.1", "root", "apmsetup"); //DB가 있는 주소(이것은 웹서버로 직접 접속하는 것이기 때문에 루프백 주소를 써도 됨)
mysql_selectdb("lhu114"); //DB 선택
mysql_query("set names utf8"); //이것 또한 한글(utf8)을 지원하기 위한 것
mysql_query("set names euckr"); //이것 또한 한글(utf8)을 지원하기 위한 것
mysql_query("set session character_set_connection=utf8;");
mysql_query("set session character_set_results=utf8;");
mysql_query("set session character_set_client=utf8;");

$ParentPhoneNumber = $_REQUEST[ParentPhoneNumber];
//$FirstChildSchool = $_REQUEST[FirstChildSchool];
//$FirstChildGrade = $_REQUEST[FirstChildGrade];
//$FirstChildClass = $_REQUEST[FirstChildClass];
//$FirstChildName = $_REQUEST[FirstChildName];

	$query1 = "select * from confirm_request where ParentPhoneNumber = '$ParentPhoneNumber';" ;
	$result1 = mysql_query ($query1);
	
	while($obj1 = mysql_fetch_object($result1))
	{

		$ParentPhoneNumber = $obj1->ParentPhoneNumber;
		$FirstChildSchool = $obj1->FirstChildSchool;
		$FirstChildGrade = $obj1->FirstChildGrade;
		$FirstChildClass = $obj1->FirstChildClass;
		$FirstChildName = $obj1->FirstChildName;
	 
		echo $ParentPhoneNumber;
		echo " $FirstChildSchool";
		echo " $FirstChildGrade";
		echo " $FirstChildClass";
		echo " $FirstChildName";
	}
	
mysql_close($connect);
?>